/**
 * This file is part of the CAKIS project.
 * 
 * Copyright (c) 2009-2010 - Florian Arndt, Christian Kerl
 * 
 * @license GNU Lesser General Public License v3 <http://www.opensource.org/licenses/lgpl-3.0.html>
 * @since   11.05.2010
 * @version SVN: $Id: PageRedirectEvent.java 120 2010-05-11 20:11:01Z christian-kerl@web.de $
 */
package org.cakis.server.service.session;

import org.jboss.seam.faces.Redirect;

/**
 * RedirectToPage
 *
 * @author Christian Kerl
 */
public class PageRedirectEvent extends ClientSessionRedirectEvent {
    private static final long serialVersionUID = 1L;

    private final String page;

    public PageRedirectEvent(ClientSessionInfo session, String page, String description) {
        super(session, description);

        this.page = page;
    }

    @Override
    public void apply(Redirect redirect) {
        redirect.setViewId(page);
    }

}
